package com.wei.myhame.ui.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.wei.myhame.MainActivity;
import com.wei.myhame.R;
import com.wei.myhame.base.BaseActivity;
import com.wei.myhame.base.interfaces.IPresenter;

public class ChooseIdActivity extends BaseActivity {
    RelativeLayout relativeBackMain,relativeParties,relativeImALawyer,relativeElse;
    Button buttonBack;
    TextView texttopname;
    ImageView fyimg;


    @Override
    protected int getLayout() {
        return R.layout.activity_choose_id;
    }

    @Override
    protected IPresenter createPresenter() {
        return null;
    }

    @Override//定义接口的方法
    protected void initView() {

    }

    @Override//初始化数据的方法
    protected void initData() {
        buttonBack=findViewById(R.id.buttonBack);//返回按钮
        relativeBackMain=findViewById(R.id.relativeBackMain);//返回首页
        texttopname=findViewById(R.id.texttopname);//顶部法院名称
        fyimg=findViewById(R.id.fyimg);//顶部法院图片
        relativeParties=findViewById(R.id.relativeParties);//我是当事人
        relativeImALawyer=findViewById(R.id.relativeImALawyer);//我是律师
        relativeElse=findViewById(R.id.relativeElse);//其他


        //返回按钮的点击事件
        buttonBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(ChooseIdActivity.this,IdentificationActivity.class);
                startActivity(intent);
                finish();
            }
        });
        //返回首页的点击事件
        relativeBackMain.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(ChooseIdActivity.this, CheckInActivity.class);
                startActivity(intent);
                finish();
            }
        });
    }
}
